import type { ExtractPropTypes, PropType } from 'vue'

type buttontypes = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
type buttonSize = 'small' | 'medium' | 'large'

export const buttonProps = () => ({
  type: String as PropType<buttontypes>, // 状态
  size: String as PropType<buttonSize>,
  disabled: Boolean, // 是否禁用
  loadding: Boolean, // 是否加载
  plain: Boolean, // 是否空心
  round: Boolean, //是否圆角
  block: Boolean // 是否块级元素
})
export type ButtonProps = Partial<ExtractPropTypes<ReturnType<typeof buttonProps>>>
